<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>登录</h1>
<div th:if="${param.error}">登录失败</div>
<form th:action="@{/login}" method="post">
  <div>
    <label>
      <input type="text" name="username">
    </label>
  </div>
  <div>
    <label>
      <input type="password" name="password">
    </label>
  </div>
  <input type="submit" value="登录">
</form>
</body>
</html>